package com.qf.rest;

/**
 * --- 天道酬勤 ---
 *
 * @author Xiaoze
 * @date 2024/5/16
 * @desc
 */
public class Rest6 {
    public static void main(String[] args) {
        // String name = "Xiaoze";
        // System.out.println(name);

        // String name = "Xiaoze";
        // int age = 21;
        // double money = 19.9;
        // System.out.println("我叫"+name+"今年"+age+"卡里还有"+money);
        int a = 10;
        int b = 20;
        /**
         * 行内执行顺寻：右边赋值给左边
         * 赋值就是覆盖，覆盖后原值消失
         * 想让原数据还在，可以使用第三变量暂存
         */
        a = b;
        b = a;
        System.out.println("b = " + b);
        System.out.println("a = " + a);
    }
}
